package sample.web.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import sample.web.dto.OrderDto;
import sample.web.mapper.OrderMapper;
import sample.web.model.Order;
import sample.web.service.OrderService;

import javax.annotation.Resource;
import java.util.List;

@Service("orderService")
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {
    @Resource
    private OrderMapper orderMapper;

    @Override
    public List<OrderDto> orderList() {
        return orderMapper.orderList();
    }
}
